﻿using System;
using Altairis.FluffyCloud.Data;

namespace Altairis.FluffyCloud.WebCore.Pages {

    public class DbPage : System.Web.UI.Page {
        protected FluffyDbContext DbContext = new FluffyDbContext();

        protected override void OnUnload(EventArgs e) {
            if (this.DbContext != null) this.DbContext.Dispose();
            base.OnUnload(e);
        }
    }
}